home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
MiscKit1.7.1
/
MiscKitArchive.mbox
/
mbox
/
000113_zet@cip.e-tech…uni-erlangen.de_Thu Feb 3 02:02 MST 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-10-30
|
4KB
Received: from yvax.byu.edu by maine.et.byu.edu; Thu, 3 Feb 1994 02:02:57 -0700
Return-Path: <zet@cip.e-technik.uni-erlangen.de>
Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8FKAZQJ348Y51TT@yvax.byu.edu>; Thu, 3 Feb 1994 02:02:49 MST
Received: from alaska.et.byu.edu by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8FKAWYV4G8Y51TZ@yvax.byu.edu>; Thu, 3 Feb 1994 02:02:45 MST
Received: from yvax2.byu.edu by alaska.et.byu.edu; Thu,
3 Feb 1994 02:02:33 -0700
Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8FKAKKLV401AC09@yvax.byu.edu>; Thu, 3 Feb 1994 02:02:29 MST
Received: from faui45.informatik.uni-erlangen.de by yvax.byu.edu
(PMDF V4.3-3 #4169) id <01H8FKAEKAW08Y52FA@yvax.byu.edu>; Thu,
3 Feb 1994 02:02:25 MST
Received: from cipx.e-technik.uni-erlangen.de by uni-erlangen.de with SMTP; id
AA06740 (5.65c-6/7.3v-FAU); Thu, 3 Feb 1994 09:53:37 +0100
Received: by cip.e-technik.uni-erlangen.de (15.11/7.3g-FAU) id AA07699; Thu,
3 Feb 94 09:53:29 mez
Date: Thu, 3 Feb 94 9:53:26 MEZ
From: Juergen Zeller <zet@cip.e-technik.uni-erlangen.de>
Subject: MiscPopUp
To: misckit@byu.edu
Cc: zet@cip.e-technik.uni-erlangen.de
Message-Id: <9402030853.AA07699@cip.e-technik.uni-erlangen.de>
Content-Transfer-Encoding: 7BIT
Mailer: Elm [revision: 66.25]
Status: RO
Hello,
I needed popup's with a changing number of items and did some
quick-and-dirty-hacking, but I think that a solution of
this problem could be useful to the MiscKit-Community.
I have added a short header-file of a possible solution and I will look
forward to many replies :-)
MfG,
Jvrgen
zet@cip.e-technik.uni-erlange.de
-------------------------snipp--------------------------------------------------
//
// MiscPopUp.h -- palette class for a flexible PopUpList
//
// A MiscPopUp manages a PopUpList with a variable number of entries.
// It allows a flexible setting of the selected item and offers access
// to the Cells by tag, index or string. It can switch to a non-selectable
// empty item.
//
// This is an idea of Jvrgen Zeller, zet@cip.e-technik.uni-erlangen.de.
// Please drop me a mail if you have any additional ideas or if you want
// to join the development.
//
#import <appkit/PopUpList.h>
@interface MiscPopUp : PopUpList
{
id triggerButton;
id emptyTitle;
BOOL emptyInUse;
}
// methods to switch to an item; return value is nil or the corresponding cell
- setToIndex: (int) anIndex;
- setToString: (const char*) aString;
- setToTag: (int) aTag;
- setToCell: aCell;
// methods to query the selected item; return value is nil or the corresponding value
- (int) selectedIndex;
- (const char*) selectedString;
- (int) selectedTag;
- selectedCell;
// methods to get a cell; return value is nil or the corresponding cell
- getCellByIndex: (int) anIndex;
- getCellByString: (const char*) aString;
- getCellByTag: (int) aTag;
// methods to remove an item; return value is nil or the corresponding cell
- removeByIndex: (int) anIndex;
- removeByString: (const char*) aString;
- removeByTag: (int) aTag;
- removeByCell: aCell;
// methods to handle the emptyTitle
- setEmptyTitle: (const char*) aString;
- (const char*) emptyTitle;
- setEmptyState: (int) value;
- (int) emptyState;
// query number of items
- (int) itemCount;
@end
----------------------------------------snapp-----------------------------------